package com.ruoyi.common.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_ip_pool")
public class IpPoolBean implements Serializable {
	private static final long serialVersionUID = -8390294158843856272L;
	private Long id;
	private String ip;
	private Integer port;
	private String userName;
	private String password;
	private Integer useCount;
	private Integer errorCount=0;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date expireTime;
	private String city;
	//0 http 1 socks5
	private Integer type;
	private Boolean needDelete;
	private Boolean status;
	@TableField("`group`")
	private String group;
	private String remark;

	public IpPoolBean() {
	}

	public IpPoolBean(String ip, Integer port) {
		this.ip = ip;
		this.port = port;
	}
}
